import {SAGA_ISLOGIN,LOGOUT} from './actionType'
import {connect} from 'react-redux'
const disState=(state)=>{
    return{
        isLogin:state.index.isLogin,
        uid:state.index.uid
    }
}
const disPatch=(dispatch)=>{
    return{
        sagaChangelogin(data){
            dispatch({
                type:SAGA_ISLOGIN,
                data
            })
        },
        logout(data){
            dispatch({
                type:LOGOUT
            })
        }
    }
}
export default connect(disState,disPatch)


